package com.zcl.javaClassAndObject.多样性.上溯造型;

/**
 * @Description:
 * @author: zcl
 * @date: 2021/12/10  14:20
 */
public class Music {
    public static void tune(Instrument i) {
        // ...
        i.play(Note.middleC);
    }
    public static void main(String[] args) {
        Wind flute = new Wind();
        tune(flute); // Upcasting
    }
}
/**
 * Wind.play()
 * */